# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(mqttasync)

set(NATIVERENDER_ROOT_PATH ${CMAKE_CURRENT_SOURCE_DIR})

add_subdirectory(pahomqtt)

add_subdirectory(mqtt_napi)

include_directories(${NATIVERENDER_ROOT_PATH}
                    ${NATIVERENDER_ROOT_PATH}/include
                    ${NATIVERENDER_ROOT_PATH}/pahomqtt
                    ${NATIVERENDER_ROOT_PATH}/mqtt_napi
                    )

add_library(mqttasync SHARED mqtt_module.cpp)

target_link_libraries(mqttasync PUBLIC libace_napi.z.so libhilog_ndk.z.so mqtt_napi pahomqtt libc++.a)

